package mybatis.interfaces.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.ISearchOrQueryCondition;

import java.util.Map;


/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class SearchOrQueryCondition implements ISearchOrQueryCondition {

    private static final long serialVersionUID = -7840232491522438445L;

    @ApiModelProperty(name = "searchOr[?]", value = "模糊查询，逻辑或连接,仅支持不同字段OR连接,不支持id的模糊查询，eg: searchOr[type]=enum1&searchOr[name]=name1 表示 type like '%enum1%' or name like '%name1%' ")
    @JsonIgnore
    private final transient String searchOrSwaggerView = null;
    protected Map<String, String> searchOr;

}
